$.ajaxSetup({
    headers: { 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')}
});
$("#send").click(function () {
    //验证表单是否为空
    var miss_name = $("#miss_name").val();
    var miss_sex = $("#miss_sex").val();
    var miss_home = $("#miss_home").val();
    var miss_brath = $("#miss_brath").val();
    var miss_high = $("#miss_high").val();
    var miss_date = $("#miss_date").val();
    var miss_access = $("#miss_access").val();
    var maybe_access = $("#maybe_access").val();
    var miss_money = $("#miss_money").val();
    var find_type = $("#find_type").val();
    var miss_face = $("#miss_face").val();
    var miss_experience = $("#miss_experience").val();
    var others = $("#others").val();
    var contact_name  = $("#contact_name").val();
    var contact_phone = $("#contact_phone").val();
    var contact_net = $("#contact_net").val();
    var contact_email = $("#contact_email").val();
    //验证是否为空都不为空则提交
    if (miss_name == '')
    {
        alert("请填写失踪人姓名");
    }
    else if(miss_sex == '')
    {
        alert("请填写失踪人性别");
    }
    else if(miss_home == '')
    {
        alert("请填写家庭住址");
    }
    else if(miss_brath == '')
    {
        alert("请填写出生日期");
    }
    else if (miss_high == '')
    {
        alert("请填写失踪时身高");
    }
    else if (miss_date == '')
    {
        alert("请填写失踪日期");
    }
    else if (miss_access == '')
    {
        alert("请填写失踪地点");
    }
    else if (maybe_access == '')
    {
        alert("请填写可能去处");
    }
    else if (miss_money == '')
    {
        alert("请填写酬金金额");
    }
    else if(find_type == '')
    {
        alert("请选择寻人类别")
    }
    else if (miss_face == '')
    {
        alert("请填写失踪人特征");
    }
    else if (miss_experience == '')
    {
        alert("请填写失踪经过")
    }
    else if (others == '')
    {
        alert("请填写其他的描述")
    }
    else if (contact_name == '')
    {
        alert("请填写联系人姓名")
    }
    else if(contact_net == '')
    {
        alert("请填写QQ/微信")
    }
    else if (contact_phone == '')
    {
        alert("请填写联系方式")
    }
    else if (contact_email == '')
    {
        alert("请填写电子邮箱")
    }
    else {
        $("#fbxr").submit();
    }
})